﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AutoPartsSearch.Web.ViewModels.SellerModels
{
    public class Register
    {
        public string INN { get; set; }

        public string FullName { get; set; }

        [Required]
        public string CompanyName { get; set; }

        public string Adress { get; set; }

        [Required]
        [UIHint("EmptyDropDown")]
        public int? City { get; set; }

        [Required]
        public string Phone { get; set; }

        public string Phone2 { get; set; }

        [DataType(DataType.MultilineText)]
        public string MobilePhone { get; set; }

        public string Site { get; set; }

        [Required]
        public IEnumerable<int> CarBrands { get; set; }

        [Required]
        public IEnumerable<int> PartGroups { get; set; }

        public bool IsDeliveryOnlyToRegion { get; set; }

        public bool ReceiveQueriesByEmail { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        public string EMail { get; set; }

        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Compare("Password")]
        public string ConfirmPassword { get; set; }


        public string DirectorName { get; set; }

        public DateTime Created { get; set; }

        public bool IsIndividual { get; set; }
    }
}